<?php
namespace App\Model;
use App\Repository\Common\ConstTable;
use App\Repository\Sys\Db;
use App\Repository\Sys\JsonRespose;
use App\Repository\Sys\Str;
//新闻表
class WebSetupTable{
    use Db;
    static private $table = 'web_setup';
    //网站设置-详情
    static public function getWebSetupInfo($id){
    	$res = WebSetupTable::ORM()->where('id',$id)->first();
        if (!$res) {
            return JsonRespose::fail('数据不存在');
        }
        return JsonRespose::jsonArray(1,$res);
    }
}